<?
	include('chksession.php');
		include('conn.php');
	session_start();
   
	  $prefx = $_REQUEST['prefx'];
	  $name = $_REQUEST['name'];
      $address = $_REQUEST['address'];
	  $city = $_REQUEST['city'];
	  $email = $_REQUEST['email'];
	  $phoneno = $_REQUEST['phoneno'];
	  $custid = $_REQUEST['custid'];
	  $custtype = $_REQUEST['custtype'];
	   $enteredby=$_SESSION['username'];
	   $appadmchrg=$_REQUEST['appadmchrg'];
	   	
		$sql="update customermast set custdesc='$name',custtype='$custtype',address='$address',city='$city',email='$email',phoneno='$phoneno',prefx='$prefx',enteredby='$enteredby',appadmchrg='$appadmchrg',entrydt=sysdate()	where status=0 and custid=$custid";
						
		$res=mysql_query($sql);
		if($res)
		$msg='Record updated successfully...';					

?>